home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / xntp3.zip / Config.sequent < prev    next >
Text File  |  1992-08-29  |  7KB  |  183 lines

  1. # Edit this file to reflect information specific to your installation.
  2. # Then run 'make makefiles' to propagate the information to all the makefiles,
  3. #
  4. # Definitions for the library:
  5. #
  6. # You must define one of -DXNTP_BIG_ENDIAN, -DXNTP_LITTLE_ENDIAN
  7. #    or -DXNTP_AUTO_ENDIAN depending on which way your machine's
  8. #    bytes go for the benefit of the DES routine.  Most things
  9. #    sold by DEC, the NS32x32 and the 80386 deserve a
  10. #    -DXNTP_LITTLE_ENDIAN.  Most of the rest of the world does
  11. #    it the other way.  If in doubt, pick one, compile
  12. #    everything and run authstuff/authcert < authstuff/certdata.
  13. #    If everything fails, do it the other way.
  14. #
  15. #    Under BSD, you may define -DXNTP_NETINET_ENDIAN to use
  16. #    netinet/in.h to determine which of -DXNTP_BIG_ENDIAN and
  17. #    XNTP_LITTLE_ENDIAN should be used.
  18. #
  19. LIBDEFS= -DXNTP_AUTO_ENDIAN
  20.  
  21. #
  22. # Library loading:
  23. #
  24. # If you don't want your library ranlib'ed, chose the second line
  25. #
  26. RANLIB=        ranlib
  27. #RANLIB=    : # ar does the work of ranlib under System V
  28.  
  29. #
  30. # Definitions for programs:
  31. # If your compiler doesn't understand the declaration `signed char',
  32. #       add -DNO_SIGNED_CHAR_DECL.  Your `char' data type had better be
  33. #    signed.  If you don't know what the compiler knows, try it
  34. #    without the flag.  If you get a syntax error on line 13 of
  35. #    ntp.h, add it.  Note that `signed char' is an ANSIism.  Most
  36. #    older, pcc-derived compilers will need this flag.
  37. #
  38. # If your library already has 's_char' defined, add -DS_CHAR_DEFINED.
  39. #
  40. # For SunOS 3.x, add -DSUN_3_3_STINKS (otherwise it will complain
  41. #    about broadaddr and will hang if you run without a -d flag
  42. #    on the command line.  I actually can't believe the latter
  43. #    bug.  If it hangs on your system with the flag defined, peruse
  44. #    xntpd/ntp_io.c for some rude comments about SunOS 3.5 and try it
  45. #    the other way).  This flag affects xntpd only.
  46. #
  47. # For Ultrix 2.0, add -DULT_2_0_SUCKS.  This OS has the same hanging
  48. #    bug as SunOS 3.5 (is this an original 4.2 bug?) and in addition
  49. #    has some strangeness concerning signal masks.  Ultrix 2.3 doesn't
  50. #    have these problems.  If you're running something in between
  51. #    you're on your own.  This flag affects xntpd only.
  52. #
  53. # For SunOS 4.x, add -DDOSYNCTODR_SUCKS to include the code in ntp_util.c
  54. #    that sets the battery clock at the same time that it updates
  55. #    the driftfile. It does this by revving up the niceness, then
  56. #    sets the time of day to the current time of day. Ordinarily,
  57. #    you would need this only on non-networked machines.
  58. #
  59. # There are three ways to pry loose the kernel variables tick and tickadj
  60. #    needed by ntp_unixclock.c.  One reads kmem and and is enabled
  61. #    with -DREADKMEM.  One uses Sun's libkvm and is enabled with
  62. #    -DUSELIBKVM. The last one uses builtin defaults and is enabled
  63. #    with -DNOKMEM. Therefore, one of -DUSELIBKVM, -DREADKMEM or
  64. #    -DNOKMEM must be defined. Suns and recent BSD should use
  65. #    -DUSELIBKVM; others should use -DREADKMEM. If -DUSELIBKVM, use
  66. #    the DAEMONLIBS below to get the kernel routines.
  67. #
  68. # If your gethostbyname() routine isn't based on the DNS resolver (and,
  69. #    in particular, h_errno doesn't exist) add a -DNODNS.  There
  70. #    doesn't seem to be a good way to detect this automatically which
  71. #    works in all cases.  This flag affects xntpres only.
  72. #
  73. # The flag -DDEBUG includes some debugging code.
  74. #
  75. # The flag -DREFCLOCK causes the basic reference clock support to be
  76. #    compiled into the daemon.  If you set this you will also want
  77. #    to configure the particular clock drivers you want in the
  78. #    CLOCKDEFS= line below.  This flag affects xntpd only.
  79. #
  80. # There is an occurance of a call to rindex() in the daemon.  You may
  81. #    have to include a -Drindex=strrchr to get this to load right.
  82. #
  83. # To change the location of the configuration file, use a
  84. #    -DCONFIG_FILE=\\"/local/etc/ntp.conf\\" or something similar.
  85. #
  86. # Under HP-UX, you must use either -Dhpux70 or -Dhpux80 as,
  87. #    well as -DNOKMEM
  88. #
  89. # If your library doesn't include the vsprintf() routine, define
  90. #    NEED_VSPRINTF.
  91. #
  92. # Define -DPPS to include support for a 1-pps signal. Define -DPPSDEV
  93. #    to include a device driver for it. The latter requires a
  94. #    serial port and either a line discipline or STREAMS module.
  95. #    The PPS signal may also be generated via a reference clock
  96. #    module like DCF77. In that case a special define is required for
  97. #    the reference clock module (only one source of PPS signal should
  98. #    be used)
  99. #
  100. DEFS= -DREADKMEM -DNEED_VSPRINTF -DDEBUG
  101.  
  102. #
  103. #  Authentication types supported.  Choose from DES and MD5.  If you
  104. #  have a 680x0 type CPU and GNU-C, also choose -DFASTMD5
  105. #
  106. AUTHDEFS=-DDES -DMD5
  107.  
  108. #
  109. # Clock support definitions (these only make sense if -DREFCLOCK used):
  110. #
  111. # Define -DLOCAL_CLOCK to include local pseudo-clock support
  112. #
  113. # Define -DPST to include support for the PST 1020 WWV/H receiver.
  114. #
  115. # Define -DWWVB to include support for the Spectracom 8170 WWVB receiver.
  116. #
  117. # Define -DCHU to include support for a driver to receive the CHU
  118. #    timecode.  Note that to compile in CHU support you must
  119. #    previously have installed the CHU serial line discipline in
  120. #    the kernel of the machine you are doing the compile on.
  121. #
  122. # Define -DDCF to include support for the DCF77 receiver. This code
  123. #    requires a special STREAMS module found in the kernel directory.
  124. # Define -DDCFPPS for PPS support via the DCF77 receiver
  125. #    (see also: -DPPS)
  126. #
  127. # Define -DGOES to support a Kinemetrics TrueTime 468-DC GOES receiver.
  128. #
  129. CLOCKDEFS=
  130.  
  131. #
  132. # For MIPS 4.3BSD or RISCos 4.0, include a -lmld to get the nlist() routine.
  133. #    If USELIBKVM is defined above, include a -lkvm to get the kernel
  134. #    routines.
  135. #
  136. #DAEMONLIBS= -lmld
  137. #DAEMONLIBS= -lkvm
  138. DAEMONLIBS=
  139.  
  140. #
  141. # Name resolver library.  Included when loading xntpres, which calls
  142. # gethostbyname().  Define this if you would rather use a different
  143. # version of the routine than the one in libc.a
  144. #
  145. #RESLIB= -lresolv
  146. RESLIB=
  147.  
  148. #
  149. # Option flags for the C compiler.  A -g if you are uncomfortable
  150. #
  151. COPTS= -O
  152.  
  153. #
  154. # C compiler to use.  gcc will work, but avoid the -fstrength-reduce option
  155. # if the version is 1.35 or earlier (using this option caused incorrect
  156. # code to be generated in the DES key permutation code, and perhaps
  157. # elsewhere).
  158. #
  159. COMPILER= gcc
  160.  
  161. #
  162. # Directory into which binaries should be installed
  163. #
  164. BINDIR=    /usr/local/bin
  165.  
  166. #
  167. # Special library for adjtime emulation. Used under HP-UX
  168. # (remember to run make in the adjtime directory)
  169. #
  170. #ADJLIB= ../adjtime/libadjtime.a
  171. ADJLIB=
  172.  
  173. #
  174. # BSD emulation library. In theory, this fixes signal semantics under
  175. # HP-UX, but it doesn't work with 8.0 on a 9000s340, so there is now
  176. # a work-around in the code (compiled when hpux80 is defined). In other
  177. # words, use this for HP-UX prior to 8.0.
  178. #
  179. #COMPAT= -lBSD
  180. COMPAT=
  181.  
  182.